<?php
/**
 * define message table CURD operation
 */
class CouponDAO {
	public static function getCoupons($user_id) {
		$sql = 'SELECT * FROM coupon WHERE user_id = "' . $user_id . '"';
		return $result = DB::getInstance()->getRows($sql);
	}
}